.formMain {
  background-color: $white;
  margin: 16px auto;
  width: 800px;
  padding: 16px;
  &.isAuto {
    width: calc(100% - 32px);
    margin: 16px;
    box-sizing: border-box;
  }
  > * {
    &:not(:last-child) {
      margin-bottom: 16px;
    }
  }
}
.itemBorder {
  border: 1px $border solid;
  padding: 8px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  height: 100%;
  > dl {
    display: flex;
    align-items: flex-start;
    > * {
      &:not(:last-child) {
        margin-right: 8px;
      }
    }
  }
  &:hover {
    border-color: $primary;
  }
}
.customerBox {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  .tags {
    display: flex;
    flex-wrap: wrap;
    .el-tag {
      position: relative;
      .el-icon {
        display: none;
        position: absolute;
        top: -8px;
        right: -8px;
        width: 16px;
        height: 16px;
        background-color: $error;
        color: $white;
        border: 1px $white solid;
        z-index: 2;
        cursor: pointer;
      }
      &:hover {
        .el-icon {
          display: flex;
        }
      }
    }
    .add {
      display: flex;
      align-items: center;
      padding: 0 8px;
      height: 24px;
      line-height: 24px;
      border: 1px $border solid;
      border-radius: 4px;
      &:hover {
        border-color: $primary;
        color: $primary;
        cursor: pointer;
      }
    }
  }
  > * {
    &:not(:last-child) {
      margin-bottom: 8px;
    }
  }
  .header {
    background: $white;
  }
  .el-tabs {
    --el-tabs-header-height: 32px;
    flex: 1;
    overflow: hidden;
    .el-tabs__header {
      margin-bottom: 0;
      border-bottom: none;
    }
    .el-tabs__nav {
      border: none !important;
      .is-active {
        font-weight: bold;
        border-radius: 4px 4px 0 0;
        background: linear-gradient(-0deg, #fff 50%, #fbfcff 100%);
      }
      .el-tabs__item {
        border: none;
      }
    }
    .el-tabs__content {
      position: relative;
      background: $white;
      .el-tab-pane {
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
      }
    }
  }
  .el-tab-pane {
    > .tableBox {
      margin-bottom: 0 !important;
      > * {
        margin-bottom: 0 !important;
      }
      .tableBox-search {
        background: $hover;
      }
      .tableBox-head {
        padding: 0 !important;
      }
      .pagination {
        padding: 8px 0 !important;
      }
    }
  }
}
.htmlBox {
  padding: 8px;
  border-radius: 2px;
  background-color: $hover;
  white-space: pre-wrap;
}
.listBox {
  flex: 1;
  width: 100%;
  > * {
    padding: 0 12px;
    min-height: 32px;
    background: $bg;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 2px;
    overflow: hidden;
    > * {
      display: flex;
      align-items: center;
    }
    &:hover {
      background: $hover;
    }
    &.on {
      background: $primary;
      color: $white;
    }
    &:not(:last-child) {
      margin-bottom: 8px;
    }
  }
}
.comBox {
  --p: 8px;
  background: $white;
  border: 1px $border solid;
  > * {
    &:not(:last-child) {
      border-bottom: 1px $border solid;
    }
  }
  .comBox-head {
    padding: 6px var(--p);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    > * {
      display: flex;
      align-items: center;
      color: $text;
      &:not(:last-child) {
        margin-right: 8px;
      }
      > * {
        &:not(:last-child) {
          margin-right: 8px;
        }
      }
    }
  }
  .comBox-main {
    padding: var(--p);
    overflow: hidden;
  }
}
